package login;

import java.io.IOException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;

@SuppressWarnings("serial")
public class LogOutServlet extends HttpServlet { 
	public void doPost(HttpServletRequest req, HttpServletResponse resp)
            throws IOException {
		HttpSession session = req.getSession(true);
		session.invalidate();
		resp.sendRedirect("/login.jsp");
	}
}
